home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / send_imp < prev    next >
Text File  |  2001-04-06  |  1KB  |  33 lines

  1. DEPRECATED
  2. SYNOPSIS
  3.         int send_imp(string host, int port, string message)
  4.         int send_imp(string host, int port, int * message)
  5.  
  6. DESCRIPTION
  7.         Sends The message in an UDP packet to the given host and port
  8.         number.
  9.     
  10.         The message can be given either as string, or as array of
  11.         bytes. The latter variant allows to send binary data as well.
  12.  
  13.     The efun causes a privilege violation. If USE_DEPRECATED is in effect,
  14.         it first tries privilege violation ("send_imp"), and, if this one
  15.         returns 0, then it tries privilege violation ("send_udp").
  16.         If USE_DEPRECATED is not in effect, it just tries privilege
  17.         violation ("send_udp").
  18.  
  19.         Returns 1 on success, 0 on failure.
  20.  
  21.         Note: On some machines a failed send_imp() will not be registered
  22.         until the next send_imp() - the latter one might return '0' even
  23.         if itself was successful.
  24.  
  25. HISTORY
  26.         LDMud 3.2.9 renamed this efun to send_udp(), and also changed the
  27.           privilege violation string and the apply names. This old version
  28.           is available if the driver is compiled with USE_DEPRECATED.
  29.  
  30. SEE ALSO
  31.         query_udp_port(E), receive_udp(M), receive_imp(M)
  32.  
  33.